home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS03.ADF / Arrange / arrange.lis < prev    next >
File List  |  1986-04-02  |  20KB  |  626 lines

  1.  
  2.      ARRANGE(1.1)                                              ARRANGE(1.1)
  3.  
  4.  
  5.   NAME
  6.      arrange
  7.      
  8.   SYNOPSIS
  9.      1> arrange [ >file | PRT: | PAR: ] [ filename ] [ filname ] ...
  10.      
  11.   DESCRIPTION
  12.      ARRANGE reads text from the standard input if no arguments are  given, 
  13.      otherwise it  reads  from  the  specified files.  Output is written to 
  14.      standard output. 
  15.      
  16.      
  17.      Input may consist of ordinary text, which is filled and  justified  by 
  18.      default, and  arrangement commands.  Arrangement commands consist of a 
  19.      period (.) in the first character position of a line, a two  character 
  20.      code, and  for  most  commands  an  optional  argument.   The commands 
  21.      recognized are:
  22.      
  23.   COMMANDS
  24.      
  25.      .bd n
  26.      
  27.      Change printing of characters characteristic.  Either turn on  (1)  or 
  28.      turn off (0) BOLD printing of characters. 
  29.      
  30.      .bp n
  31.      
  32.      Begin page  numbered n.  This forces the start of a new page with page 
  33.      number n.  The default for n is the current page number plus 1. 
  34.      
  35.      .br
  36.      
  37.      Cause a break.  This forces any accumulated text not yet written to be
  38.      written immediately.  Several commands implicitly cause a break before
  39.      they perform their function.  These are: .bp, .ce, .fi, .ne, .ra, .si,
  40.      .sp, and .ti. 
  41.      
  42.      .ce n
  43.      
  44.      Center Text.  The following lines of text will be centered  until  the 
  45.      center off command is received. 
  46.      
  47.      .ch n
  48.      
  49.      Characters per inch.  Change the number of characters printed per inch
  50.      across the paper.  Values are 10 and 12. 
  51.      
  52.      .cl start,width,l start/width/c ... 
  53.      
  54.      Column.  Define  the parameters for columns in the Table command.  The 
  55.      arguments are start of a column, the width of the column, and  if  the 
  56.      column is  Left  justified,  Centered,  or Right aligned.  There are a 
  57.      maximum of 10 columns allowed.  To define the columns themselves,  see 
  58.  
  59.                             Revised  6 December 1985                      1
  60.  
  61.      ARRANGE(1.1)                                              ARRANGE(1.1)
  62.  
  63.  
  64.      the Table-Begin command. 
  65.      
  66.      .cm text line
  67.      
  68.      Comment Line.   Include a line of text in the source as a comment line 
  69.      the line could be empty for use as a space in documentation.  The line
  70.      will not be passed to the arrange program. 
  71.      
  72.      .dc c
  73.      
  74.      Delimiter Char.  Changes the delimiter character for certain  commands 
  75.      from whatever  the  current  value  to the new value of 'c' for char.  
  76.      Space, return, control chars not accepted.  Default value is a '/'. 
  77.      
  78.      .dp n
  79.      
  80.      Display Page Number.  Toggles whether a page number  is  displayed  in 
  81.      the header/footers.  Can be turned on (1) or off(0). 
  82.      
  83.      .em n
  84.      
  85.      Emphasize Text.      Change  the  printing  characteristics  of  text, 
  86.      emphasize the letters, either on (1) or off (0). 
  87.      
  88.      .ex n
  89.      
  90.      Expand Characters.  Change whether normal characters (0)  or  expanded 
  91.      characters (1).    This  changes  the number of characters printed per 
  92.      line. 
  93.      
  94.      .ff n
  95.      
  96.      Form Feed.  Tell ARRANGE that the printer you are using sends  accepts 
  97.      a formfeed to page up.  Turn on (1) and turn off (0). 
  98.      
  99.      .fg text
  100.      
  101.      Figure Title.  The text associated with the line is placed just like a
  102.      section identifier but the text is entered into a TABLE of FIGURES. 
  103.      
  104.      .fi n
  105.      
  106.      Fill Text.    Text  will  be filled (output lines will contain as many 
  107.      words as possible) and right justified (right margins  will  be  lined 
  108.      up).  ARRANGE  fills by default.  Turn Fill on and off just like other 
  109.      commands. 
  110.      
  111.      .fm n
  112.      
  113.      Footer Margin.  Number of spaces to indent left footer from left  edge 
  114.      of the paper. 
  115.      
  116.      .fn text
  117.  
  118.                             Revised  6 December 1985                      2
  119.  
  120.      ARRANGE(1.1)                                              ARRANGE(1.1)
  121.  
  122.  
  123.      
  124.      Footnote.  Text  used  as a footnote on the page.  Only one line of up 
  125.      to 80 characters allowed.  F1 must be at least 1 for the  footnote  to 
  126.      appear.   If  more  than one footnote are on a specific page, the last 
  127.      one is printed. 
  128.      
  129.      .fo /left footer/center footer/right footer/
  130.      
  131.      Set footer (bottom of  page  titles).    The  strings  "left  footer", 
  132.      "center  footer", "right footer" will be written at the bottom of each 
  133.      page left justified, centered and right justified respectively.    All 
  134.      occurrences  of  the character '#' in the strings will be replace with 
  135.      the current page number. 
  136.      
  137.      .f1 n
  138.      
  139.      Footer Text Skip.  Skip n blank lines between the last  line  of  text 
  140.      and the line that will contain the footers. 
  141.      
  142.      .f2 n
  143.      
  144.      Footer Skip.   Use n to skip n-1 blank lines after the footer, where n 
  145.      must be => 1 for the footer to appear. 
  146.      
  147.      .fp n
  148.      
  149.      Flip Header/Footer.  This will cause the Left and  Right  Headers  and 
  150.      Footers to alternate on succeeding pages. 
  151.      
  152.      .g1 n
  153.      
  154.      Figure skip.    The number of lines to skip between the figure and the 
  155.      figure title. 
  156.      
  157.      .g2 n
  158.      
  159.      Figure text skip.  The number of lines to skip between the figure text
  160.      and the following lines of text. 
  161.      
  162.      .he /left header/center header/right header/
  163.      
  164.      Set header (top of page titles).  Operates the same way as the  footer 
  165.      works. 
  166.      
  167.      .hm n
  168.      
  169.      Header Margin.   Number of spaces to indent left header from left edge 
  170.      of the paper. 
  171.      
  172.      .h1 n
  173.      
  174.      Heading Skip.  Use n to skip n-1 blank lines above the header, where n
  175.      must be => 1 for the header to appear. 
  176.  
  177.                             Revised  6 December 1985                      3
  178.  
  179.      ARRANGE(1.1)                                              ARRANGE(1.1)
  180.  
  181.  
  182.      
  183.      .h2 n
  184.      
  185.      Heading Text Skip.  The number of blank  lines  to  skip  between  the 
  186.      header and the next line of text. 
  187.      
  188.      .lm n
  189.      
  190.      Left Margin.    The  start  of  each line will originate from n, other 
  191.      commands may affect the indentation, eg. ti. 
  192.      
  193.      .it n
  194.      
  195.      Italics Characters.  Changes whether the  characters  are  printed  as 
  196.      normal ascii characters (0) or in Italics (1). 
  197.      
  198.      .ju n
  199.      
  200.      Justify Text.    Decides  whether  text  is  justified along the right 
  201.      margin and gives a presentable view or is left ragged. 
  202.      
  203.      .ls n
  204.      
  205.      Set line spacing.  N-1 blank lines will be inserted between each  line 
  206.      of text. 
  207.      
  208.      .mb name
  209.      
  210.      Macro Begin.    Denotes  the  starting of a macro definition that will 
  211.      have the name called 'name'. 
  212.      
  213.      .me
  214.      
  215.      Macro End.  Denotes the ending of a macro definition. 
  216.      
  217.      .ne n
  218.      
  219.      Need n lines.  If there are  fewer  than  n  lines  remaining  on  the 
  220.      current page, then skip to a new page. 
  221.      
  222.      .nx "Major"Minor"
  223.      
  224.      Index Listing.  Allows the user to specify an index for the document. 
  225.      The  index can be broken up into two catagories, a Major heading and a 
  226.      minor heading.  The index is not printed till the end of the document. 
  227.      The index will be printed in  single  column  mode.    Currently  this 
  228.      option is not functional. 
  229.      
  230.      .pa
  231.      
  232.      Paragraph Start.    Accept  the next line of text input as a paragraph 
  233.      start and space 'ps' lines and indent from margin 'pi' spaces. 
  234.      
  235.  
  236.                             Revised  6 December 1985                      4
  237.  
  238.      ARRANGE(1.1)                                              ARRANGE(1.1)
  239.  
  240.  
  241.      .pi n
  242.      
  243.      Paragraph Indent.  Number of spaces to indent the paragraph  from  the 
  244.      left margin of the paper. 
  245.      
  246.      .pl n
  247.      
  248.      Page Length.   Define the number of lines that are on a page including 
  249.      the headers and footers. 
  250.      
  251.      .ps n
  252.      
  253.      Paragraph Spacing.  Number of lines to  skip  between  the  preceeding 
  254.      text and the start of the current paragraph. 
  255.      
  256.      .pt text
  257.      
  258.      Page Text.   Text to be placed in front of a page number in either the 
  259.      header or footer.  Defaults to Page. 
  260.      
  261.      .ra n
  262.      
  263.      Right Alignment.  Align the next n lines of  the  input  file  on  the 
  264.      right margin. 
  265.      
  266.      .rm n
  267.      
  268.      Set right margin (the rightmost character position to be written to). 
  269.      
  270.      .ro n
  271.      
  272.      Change page number printing from to roman (1) or to arabic (0). 
  273.      
  274.      .sb n
  275.      
  276.      Subscript characters.    Turns  on  (1) the Subscripting of characters 
  277.      until the turn off (0) signal is received. 
  278.      
  279.      .sh text
  280.      
  281.      Section Header.  Display a section header for the following  text  and 
  282.      place it  into  the  table  of  contents.    One note, in the table of 
  283.      contents, no page number will appear for the Header.  (Not  functional 
  284.      yet)
  285.      
  286.      .si text
  287.      
  288.      Section Identifier.    Display  a section identifier for the following 
  289.      text and place it into the table of contents. 
  290.      
  291.      .sm n
  292.      
  293.      Section Margin.  Indent the  section  identifier  n  spaces  from  the 
  294.  
  295.                             Revised  6 December 1985                      5
  296.  
  297.      ARRANGE(1.1)                                              ARRANGE(1.1)
  298.  
  299.  
  300.      margin specified by .lm. 
  301.      
  302.      .sp n
  303.      
  304.      Space.  Write n blank lines. 
  305.      
  306.      .ss n
  307.      
  308.      Section Skip.   Skip n blank lines between the preceeding text and the 
  309.      section identifer. 
  310.      
  311.      .st n
  312.      
  313.      Section Text Skip.  Skip n blank lines between the section  identifier 
  314.      and the next line of text. 
  315.      
  316.      .su n
  317.      
  318.      Superscript characters.  Turns on (1) the Superscripting of characters
  319.      until the turn off (0) signal is received. 
  320.      
  321.      .tb
  322.      
  323.      Table Begin.  Starts the beginning of tables.  The table begins on the
  324.      next      line      and      uses      the      following      format: 
  325.      /column1/column2/column3/.../column10/.  There are  a  maximum  of  10 
  326.      columns  with  the  start,  width  and  justification specified in the 
  327.      Column command. 
  328.      
  329.      .te
  330.      
  331.      Table End.  Denotes the end of a Table. 
  332.      
  333.      .tf n
  334.      
  335.      Print Table of Contents.  Toggles on (1) or off (0) whether the  Table 
  336.      of Contents will be printed if it exists. 
  337.      
  338.      .ti n
  339.      
  340.      Temporary indent.    The next output line (and only that line) will be 
  341.      given an indentation of lm+n rather than the value set by .lm. 
  342.      
  343.      .un n
  344.      
  345.      Underline Characters.  Switches Underline Mode.    Turns  on  (1)  and 
  346.      turns off (0) the underlining of characters. 
  347.      
  348.      
  349.      .macro /arg 1/arg 2/arg 3/ arg4/ arg5/
  350.      
  351.      Macro Call.    Calls  the macro named 'macro' passing it the arguments 
  352.      delimited by the delimiting character '/' (default).  Up to  five  (5) 
  353.  
  354.                             Revised  6 December 1985                      6
  355.  
  356.      ARRANGE(1.1)                                              ARRANGE(1.1)
  357.  
  358.  
  359.      arguments may  be  passed.    The macro can be called as many times as 
  360.      needed.  No nesting of Macros allowed yet. 
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.                             Revised  6 December 1985                      7
  414.  
  415.      ARRANGE(1.1)                                              ARRANGE(1.1)
  416.  
  417.  
  418.      
  419.      Numeric arguments may be specified in two ways: as absolute (unsigned)
  420.      integers, or as signed integers.  Absolute arguments are  assigned  to 
  421.      parameters in the obvious way:
  422.      
  423.        .ls 2
  424.      
  425.      sets the line spacing to 2. 
  426.      
  427.      Signed  arguments  indicate  a  change  in  the  current  value of the 
  428.      parameter being set;  the  value  of  the  argument  is  added  to  or 
  429.      subtracted from the current value.  For example, the commands:
  430.      
  431.        .pl 66
  432.        .pl -10
  433.      
  434.      will set the page length to 56, and
  435.      
  436.        .lm 10
  437.        .lm +5
  438.      
  439.      will cause a temporary indent of 15. 
  440.      
  441.      Blank  lines  and lines starting with spaces occuring in the input are 
  442.      special cases.  Blank lines cause a break and a number of blank  lines 
  443.      equal to  the current line spacing to be written.  Lines starting with 
  444.      spaces cause a break and a temporary indent of  +n,  where  n  is  the 
  445.      number of spaces before the first non-space character on the line. 
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.                             Revised  6 December 1985                      8
  473.  
  474.      ARRANGE(1.1)                                              ARRANGE(1.1)
  475.  
  476.  
  477.                               SUMMARY OF COMMANDS
  478.            Command Name         Form              Default      Min     Max
  479.                                                   
  480.            Bold Char            .bd n               off          0       1
  481.            Begin Page           .bp n                1       -1000    1000
  482.            Break line           .br                none           
  483.            Center Line          .ce n               off          0       1
  484.            Char per inch        .ch n               10          10      12
  485.            Column               .cl s,w,l s,w,r          
  486.            Comment text         .cm text           none           
  487.            Display Page         .dp n               on           0       1
  488.            Emphasize            .em n               off          0       1
  489.            Expand Text          .ex n               off          0       1
  490.            Formfeed             .ff                 on           0       1
  491.            Figure               .fg text                 
  492.            Fill Text            .fi                 on           0       1
  493.            Footer Margin        .fm n                5           0      30
  494.            Footnote             .fn text                 
  495.            Footers              .fo /lf/cn/rt/      off           
  496.            Skip B/Footer        .f1 n                3           0      20
  497.            Skip A/Footer        .f2 n                3           0      20
  498.            Flip Head/Foot       .fp n               off          0       1
  499.            Figure skip          .g1 n                1           0      10
  500.            Figure text skip     .g2 n                2           0      10
  501.            Headers              .he /lf/cn/rt/      off           
  502.            Header margin        .hm n                5           0      30
  503.            Skip B/Header        .h1 n                3           0      20
  504.            Skip A/Header        .h2 n                3           0      20
  505.            Left Margin          .lm n                5           0       1
  506.            Italic Print         .it n               off          0       1
  507.            Index                .nx "Major"Minor"        
  508.            Justify Text         .ju n               on           0       1
  509.            Line Spacing         .ls n                1           0       3
  510.            Macro Begin          .mb name                 
  511.            Macro End                              
  512.            Need Lines           .ne n                0           0      66
  513.            Paragraph            .pa                none           
  514.            Para Indent          .pi n                5           0      20
  515.            Page Length          .pl n               66          10      88
  516.            Para Spacing         .ps n                1           0      10
  517.            Page Text            .pt text           Page           
  518.            Right Align          .ra n               off          0       1
  519.            Right Margin         .rm n               70           0     132
  520.            Roman Page           .ro n               off          0       1
  521.            Subscripts           .sb n               off          0       1
  522.            Section Header       .sh text            off           
  523.            Section Id           .si text            off           
  524.            Section Margin       .sm n                5           0      30
  525.            Section Skip         .ss n                2           0       5
  526.            Space Lines          .sp n                0           0      30
  527.            Sect Text Skip       .st n                2           0       5
  528.            Superscripts         .su n               off          0       1
  529.            TOC Print            .tf n               on           0       1
  530.  
  531.                             Revised  6 December 1985                      9
  532.  
  533.      ARRANGE(1.1)                                              ARRANGE(1.1)
  534.  
  535.  
  536.            Table Begin          .tb                      
  537.            Table End            .te                      
  538.            Temp indent          .ti n                0         -99      99
  539.            Underline            .un n               off          0       1
  540.            macro                .macro /1/2/3/4/5        
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.                             Revised  6 December 1985                     10
  591.  
  592.      ARRANGE(1.1)                                              ARRANGE(1.1)
  593.  
  594.                           Conceptual View of ARRANGED Page
  595.          
  596.                     V      Top Edge of paper       V
  597.        ________________________________________________________________
  598.        |  ^                                                           |  ^
  599.        |  |   TOP MARGIN,  H1                                         |  .
  600.     L  |  |                                                           |  .
  601.     E  |  VLEFT                     CENTER                   RIGHT    |  .
  602.     F  |  ^                                                           |
  603.     T  |  |  MARGIN BELOW THE HEADER,  H2                             |  L
  604.        |  V                                                           |  I
  605.     E  |  User defined text starts here and continues down to the     |  N
  606.     D  |  footer on the bottom of the page.                           |  E
  607.     G  |                                                              |  S
  608.     E  |                                                              |
  609.        | |------  Indentation from left edge,  LM                     |  p
  610.     o  |<->|         Considered the LEFT MARGIN                       |  e
  611.     f  |   |                                                          |  r
  612.        |   |User text is indented the specified number of spaces      |
  613.     P  |   |from the edge of the paper.                               |  P
  614.     A  |   |                                                          |  A
  615.     G  |<------------------ RIGHT MARGIN from left edge, RM ---->|    |  G
  616.     E  |   |                                                     |    |  E
  617.        |   |User text will be FILLED out to the right margin when|    |
  618.        |   |ever it is generated, except  in the  case of  having|    |  PL
  619.        |   |fill off.                                            |    |
  620.        |   |                           This is RIGHT ALIGNED text|    |  .
  621.        |   |                                                     |    |  .
  622.        |   |This is NON FILLED text that is input                |    |  .
  623.        |   |                                                     |    |  .
  624.        |   |                                                     |    |  .
  625.        |   |                                                     |    |  .
  626.        |   |